GDK W32: Always set gtk-font-name to the active UI font. Fixes #1484
authorChristoph Reiter <reiter.christoph@gmail.com>
Thu, 29 Nov 2018 22:19:38 +0000 (23:19 +0100)
committerChristoph Reiter <reiter.christoph@gmail.com>
Mon, 10 Dec 2018 08:00:50 +0000 (09:00 +0100)
commit5612e84551d6857a55eea2acb60914c45df4fc9d
tree4dfeba3dbf53066164275711a84e80184e41a66e
parent80a90a084e321e485ca4cb189eafe86dbf79e55f
GDK W32: Always set gtk-font-name to the active UI font. Fixes #1484

This makes apps use "Segoe UI 9" by default instead of whatever matches "Sans 10".
It also cleans up the code and uses some new pango API while at it.

This was previously disabled in 9e686d1fb5cb20 because it led to a poor glyph coverage
on certain versions of Windows which don't default to "Segoe UI 9" (Chinese, Korean, ..)
because the font fallback list was missing in pango.

This is about to get fixed in https://gitlab.gnome.org/GNOME/pango/merge_requests/34
so enable it again when we detect a new enough pango version.

(See !436 for the original MR)
gdk/win32/gdkproperty-win32.c
gdk/win32/meson.build